package com.sc.nft.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.sc.nft.sup.SuperEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 排行榜配置表
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName(value = "sc_mall_activity_ranking")
public class MallActivityRanking extends SuperEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 排行榜名称
     */
    @ApiModelProperty(value = "排行榜名称")
    @TableField(value = "`name`")
    private String name;

    /**
     * 排行榜开始时间
     */
    @ApiModelProperty(value = "排行榜开始时间")
    @TableField(value = "start_time")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    /**
     * 排行榜结束时间
     */
    @ApiModelProperty(value = "排行榜结束时间")
    @TableField(value = "end_time")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    /**
     * 排行榜周期
     */
    @ApiModelProperty(value = "排行榜周期")
    @TableField(value = "period_days")
    private Integer periodDays;

    /**
     * 榜单人数
     */
    @ApiModelProperty(value = "榜单人数")
    @TableField(value = "num_of_users")
    private Integer numOfUsers;

    /**
     * 排行榜规则图片
     */
    @ApiModelProperty(value = "排行榜规则图片")
    @TableField(value = "activity_rules")
    private String activityRules;

    /**
     * 门槛金额
     */
    @ApiModelProperty(value = "门槛金额")
    @TableField(value = "threshold_amount")
    private BigDecimal thresholdAmount;

    /**
     * 是否开启
     */
    @ApiModelProperty(value = "是否开启0关闭，1开启")
    @TableField(value = "status")
    private Boolean status;

}